package gao.xiaolei.controller;

import gao.xiaolei.service.TestCopyService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

@RestController
public class TestCopyController {

    @Resource(name = "TestCopyService")
    private TestCopyService testCopyService;

    @PostMapping("/copy")
    public void copy(@RequestParam("type") Integer type,
                     @RequestParam("project") String project) {
        testCopyService.copy(type, project);
    }
}
